package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.log.BikePosDao;
import com.tbit.uqbike.client.pojo.newEntity.BikePos;
import com.tbit.uqbike.client.service.BikePosService;
import com.tbit.uqbike.client.util.DateTimeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: chen
 * @Description: 车辆借还车位置
 * @Date: 创建于 9:16 2021/5/26
 */
@Service
public class BikePosServiceImpl implements BikePosService {
    @Autowired
    private BikePosDao bikePosDao;

    @Override
    public void add(BikePos bikePos) {
        bikePos.setAddTime(DateTimeUtil.getNowTime());
        bikePosDao.add(bikePos);
    }

    @Override
    public List<BikePos> getByOrderNO(String orderNO) {
        return bikePosDao.getByOrderNO(orderNO);
    }
}
